package com.spzx.cart.service;

import com.spzx.cart.domain.CartItem;

import java.util.List;

public interface CartService {
    boolean addToCart(Long skuId, Integer num);

    boolean checkCart(Long skuId, Integer checkStatus);

    List<CartItem> selectCartList();

    boolean deletedCartByskuId(Long skuId);

    boolean clearCart();

    boolean allCheckCart(Integer checkStatus);

    List<CartItem> selectCheckedCartItems(Long userId);


    public void delCheckedCartItems(Long userId);
}
